<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        // 12345翻转为54321
        var Array = [1, 2, 3, 4, 5];
        var Array_opsition = [];
        for (var i = 0; i < Array.length; i++) {
            Array_opsition[Array.length - 1 - i] = Array[i];
        }
        console.log(Array_opsition);
    </script>
</head>

<body>

</body>

</html>